package com.baseproject.slidingmenu;

import android.app.Activity;
import android.view.View;

/**
 * Created by hp on 2017/7/19.
 */

public class SlidingLayoutManager implements ISlidingLayout {

    public static int SLIDING_TYPE_LEFT = 0;
    public static int SLIDING_TYPE_RIGHT = 1;

    ISlidingLayout slidingLayout;

    public SlidingLayoutManager(ISlidingLayout slidingLayout) {
        this.slidingLayout = slidingLayout;
    }

    @Override
    public void adjustContentAndSlidingView(Activity Activity, Object ...layoutIds) {
        slidingLayout.adjustContentAndSlidingView(Activity, layoutIds);
    }

    @Override
    public void setContentFadeColor(int colorId) {
        slidingLayout.setContentFadeColor(colorId);
    }

    @Override
    public boolean isOpen(int type) {
        return slidingLayout.isOpen(type);
    }

    @Override
    public void open(int type) {
        slidingLayout.open(type);
    }

    @Override
    public void close(int type) {
        slidingLayout.close(type);
    }

    @Override
    public void addSlidingListener(ISlidingListener slidingListener) {
        slidingLayout.addSlidingListener(slidingListener);
    }

    @Override
    public View getSlidingLayout(int type) {
        return slidingLayout.getSlidingLayout(type);
    }

    @Override
    public void setSlidingEnable(int type, boolean ifEnable) {
        slidingLayout.setSlidingEnable(type, ifEnable);
    }
}
